package com.wgchao.amc.entity.base;

import javax.persistence.*;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * @作者  wgchao
 * @时间 2019-10-20 
 * @用途  用户信息表
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table ( name ="sys_base_user" )
public class SysBaseUser  implements Serializable {

	private static final long serialVersionUID =  3314730858113527816L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "id" )
	private Long id;

	/**
	 * 用户名称
	 */
   	@Column(name = "name" )
	private String name;

	/**
	 * 账户名
	 */
   	@Column(name = "uname" )
	private String uname;

	/**
	 * 账户密码
	 */
   	@Column(name = "password" )
	private String password;

	/**
	 * 所属机构
	 */
   	@Column(name = "agency_code" )
	private String agencyCode;

	/**
	 * 账户类型 默认为后台管理账户。1:接口使用账户 2:综合账户
	 */
	@Column(name = "utype" )
	private Integer utype;

	/**
	 * 联系电话
	 */
   	@Column(name = "tel" )
	private String tel;

	/**
	 * 邮箱
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 备注
	 */
   	@Column(name = "remark" )
	private String remark;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 创建人
	 */
   	@Column(name = "create_user" )
	private Long createUser;

	/**
	 * 最近更新时间
	 */
   	@Column(name = "last_update_time" )
	private Date lastUpdateTime;

	/**
	 * 最近更新人
	 */
   	@Column(name = "last_update_user" )
	private Long lastUpdateUser;

	/**
	 * 删除标志
	 */
   	@Column(name = "del" )
	private boolean del;

	/**
	 * 删除时间
	 */
   	@Column(name = "del_time" )
	private Date delTime;

	/**
	 * 删除人
	 */
   	@Column(name = "del_user" )
	private Long delUser;

	/**
	 * 注销标志
	 */
   	@Column(name = "cancel" )
	private boolean cancel;

}
